home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Pascal / Book Demos in Pascal / SpriteEngine / SE Programmed Sprite / SpriteStructure.p < prev   
Text File  |  1995-04-04  |  725b  |  30 lines

  1. unit SpriteStructure;
  2.  
  3. {This unit defines the SpriteRecord structure. It i a separate unit since it}
  4. {is likely to be edited.}
  5.  
  6. interface
  7.  
  8. {$setc _hasfixedpoint := false}
  9.  
  10. {$IFC UNDEFINED THINK_PASCAL}
  11.     uses Types, QuickDraw;
  12. {$ENDC}
  13.  
  14.     type
  15.         SpritePtr = ^SpriteRecord;
  16.         SpriteRecord = record
  17. (*Game entity data - edit as desired*)
  18.                 speed: Point;                (*  *)
  19.                 timeOnCurrent: Integer;
  20.                 currentInstruction: Integer;
  21. (*Sprite data - don't remove*)
  22.                 position: Point;            (* Integer screen coordinates! *)
  23.                 face: GrafPtr;                (* Apprearance of the sprite *)
  24.                 drawingRect: Rect;        (* Where is it? *)
  25. (*List pointers - don't remove*)
  26.                 prev, next: SpritePtr;        (* Next enity in the list *)
  27.             end;
  28.  
  29. implementation
  30. end.